<template>
    <div>
        <van-image
                :style="{
                    display: data.url === '' || data.url === undefined ? 'none' : 'inline-block'
                }"
                :fit="data.fit"
                width="100%"
                :height="data.style.height === 'auto' ? 'auto' : (data.style.height + 'px')"
                :src="data.url" />
    </div>
</template>

<script>
    export default {
        props: {
            data: Object
        }
    };
</script>